#pragma once

#include "ChessBoard.h"

const int SCORE_TABLE[][3]={{0,0,0},{1,1,0},{4,2,0},{100,6,0},{300,300,0},{800,800,800}};

class ChessRobot
{
public:
	ChessRobot(void);

	int CalculateValue_Row(int map[][CHESS_BOARD_LINE],int x_pos,int y_pos,int cur_role);
	int CalculateValue_Line(int map[][CHESS_BOARD_LINE],int x_pos,int y_pos,int cur_role);
	int CalculateValue_PosDiag(int map[][CHESS_BOARD_LINE],int x_pos,int y_pos,int cur_role);
	int CalculateValue_NegDiag(int map[][CHESS_BOARD_LINE],int x_pos,int y_pos,int cur_role);

	void CalculateValue(int map[][CHESS_BOARD_LINE],int& x_put,int& y_put,int cur_role,int random);
public:
	~ChessRobot(void);
};
